package errorcode

//全局错误码
const (
	EC_GL_SUCCESS uint = 0

	PM_LOGIN_PERMISSION_DENIDE uint = 101001

	EC_GL_INVALID_ACCESS_TOKEN uint = 403001 //无效的ak
	EC_GL_INVALID_APPKEY       uint = 403002 //无效的appkey
	EC_GL_INVALID_IP           uint = 403003 //无效的ip
	EC_GL_INVALID_URL_TIME     uint = 403004 //无效的url时间戳
	EC_GL_INVALID_URL_SIGN     uint = 403005 //无效的url签名
	EC_GL_INVALID_SERVICE      uint = 403006 //无效的服务
	EC_GL_INVALID_SESSIONID    uint = 403007 //无效的sessionid
	EC_GL_INVALID_HTTPS        uint = 403008 //无效的https请求
	EC_GL_INVALID_URL_PARAMS   uint = 403009 //无效的url参数

	EC_GL_INVALID_JSON_BODY uint = 404001 //无效的body参数

	EC_GL_INTERNAL_ERROR uint = 503001 //一般是数据库错误

	EC_GL_USER_HAS_NO_DATA uint = 20000001 //用户暂且没有数据
)

const (
	//账号
	EC_ACCOUNT_USER_NOT_REGISTER              uint = 20501001 //用户尚未在账号系统注册
	EC_ACCOUNT_MOBILE_INVALID                 uint = 20501002 //无效的手机号码
	EC_ACCOUNT_USER_REGISTER_BY_PASSPORT_FAIL uint = 20501003 //在账号系统注册失败

	//加盟商体系授权
	EC_QKLEAGUE_PERMISSION_DENY uint = 20502001 //尚未得到加盟商体系授权
	EC_QKLEAGUE_USER_NOT_EXIST  uint = 20502002 //用户不存在

	//用户信息
	EC_USER_INFO_USER_ID_MISSING        uint = 20503001 //url参数uid不能为空
	EC_USER_INFO_MODIFY_USER_ID_MISSING uint = 20503002 //body参数uid缺失

	//统计
	EC_STATIS_WASHROOM_HAS_NO_ORDER uint = 20504001 //洗衣房截止没有订单
	EC_STATIS_USER_HAS_NO_BILL      uint = 20504002 //用户暂且没有账单
	EC_STATIS_PARAMS_INVALID        uint = 20504003 //统计参数错误

	//加盟商洗衣机操作
	EC_WASHER_ENABLE_PARAM_ERR                uint = 20601001 //停启用洗衣机参数错误
	EC_WASHER_WASHER_LOCATE_WASHER_ID_INVALID      = 20601002 //定位洗衣机洗衣机id参数无效
)
